package com.dbsop.domain.transport;


import com.dbsop.domain.EsCondition;
import com.dbsop.domain.EsConditionGtRange;
import com.dbsop.domain.transport.query.LtRangeQuery;

/**
 * Es条件查询 子查询
 */
public class EsTransportConditionGtRange extends EsConditionGtRange {

    private EsTransportCondition esTransportCondition;

    private LtRangeQuery ltRangeQuery;

    public EsTransportConditionGtRange(EsTransportCondition esTransportCondition, LtRangeQuery ltRangeQuery) {
        this.esTransportCondition = esTransportCondition;
        this.ltRangeQuery = ltRangeQuery;
    }

    @Override
    public EsCondition gt(Object value) {
         ltRangeQuery.gt(value);
        return esTransportCondition;
    }

    @Override
    public EsCondition gte(Object value) {
        ltRangeQuery.gte(value);
        return esTransportCondition;
    }

}
